<?php

ob_start();
session_start();
$id_member = $_SESSION["id_member"];
ob_start();
include_once "../connect.php";
// รับค่ามาเก็บไว้ใน 
$alt_Id = $_POST["alt_Id"];
//$id_member = $_SESSION["id_member"];
//$de_id = $_POST["de_id"];
//$cn_id = $_POST["cn_id"];
$opStatus = $_POST["opStatus"];
$alt_Program = $_POST["chkProgram"];
$alt_Device = $_POST["chkDevice"];
$alt_Error = $_POST["txtError"];
//$id_member = $_POST["id_member"];


if (!empty($alt_Id)) {
    $sql = "UPDATE `db_itmanager`.`altcomservice` SET
`alt_Program` = '$alt_Program',
`alt_Device` = '$alt_Device',  
`alt_Error` = '$alt_Error',
`alt_status` = '$opStatus',
   `id_member` = '$id_member' 
WHERE `altcomservice`.`alt_Id` = '$alt_Id' ";
} else {

    header("location:listCom.php");
}
if (mysql_query($sql)) {
//altServiceComUp.php?alt_Id=<?= $objResult2["alt_Id"]; 
  
   header("location:altServiceComUp.php?alt_Id=$alt_Id");
    
    
} else {
    echo mysql_error();
}
?>
